﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using ExtAspNet;

public partial class Module_CustServerManger_MyServerCust : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            LoadGvlist(Convert.ToInt32(StaffID));
        }
    }

    private void LoadGvlist(int ServerStaffID)
    {
        Ylh.BLL.CustBLL bllc = new Ylh.BLL.CustBLL(DbConnectionStr);

        Grid1.DataSource = bllc.GetCustList(ServerStaffID);
        Grid1.DataBind();
    }
   
    protected void Grid1_RowDataBound(object sender, GridRowEventArgs e)
    {
    
        System.Web.UI.WebControls.LinkButton lbf = (System.Web.UI.WebControls.LinkButton)Grid1.Rows[e.RowIndex].FindControl("lbfAction1");

        string str = Grid1.DataKeys[e.RowIndex][0].ToString();

        lbf.OnClientClick = "AddTab('Module/CustServerManger/MyServerCustDetailed.aspx?CustID=" + str + "', 'MyCustServer_MyCustServerDetailed', '客户服务详细信息')";
    }
}